﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Imladris.DAL.DocumentCodeListContext;
using Imladris.Entities;

namespace Imladris.BUS.DocumentCodeListRepo
{
    public class DocumentsCodeListRepo : IDisposable
    {
        private readonly DocumentCodeListContext _context;

        public DocumentsCodeListRepo()
        {
            _context = new DocumentCodeListContext();
        }

        public IQueryable<DocumentAdditional1> DocumentAdditionals1CL
        {
            get { return _context.DocumentAdditionals1.AsNoTracking(); }
        }

        public IQueryable<DocumentAdditional2> DocumentAdditionals2CL
        {
            get { return _context.DocumentAdditionals2.AsNoTracking(); }
        }

        public IQueryable<DocumentAdditional3> DocumentAdditionals3CL
        {
            get { return _context.DocumentAdditionals3.AsNoTracking(); }
        }

        public IQueryable<DocumentAdditional4> DocumentAdditionals4CL
        {
            get { return _context.DocumentAdditionals4.AsNoTracking(); }
        }

        public IQueryable<DocumentCategory> DocumentCategoriesCL
        {
            get { return _context.DocumentCategories.AsNoTracking(); }
        }

        public IQueryable<DocumentType> DocumentTypeCL
        {
            get { return _context.DocumentTypes.AsNoTracking(); }
        }

        public IQueryable<Eployee> EployeesCL
        {
            get { return _context.Eployees.AsNoTracking(); }
        }

        public IQueryable<Person> Persons
        {
            get { return _context.Persons.AsNoTracking(); }
        }
      
        public void Dispose()
        {
            _context.Dispose();
        }

    }
}
